package com.ybServer.service;

import com.ybServer.model.ActivityData;
import com.ybServer.model.Comment;
import com.ybServer.model.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ActivityService {
    void saveActivity(MultipartFile[] pictures, ActivityData activityData) throws Exception;

    List<ActivityData> queryActivityByCategory(String category, long lastId) throws Exception;

    List<ActivityData> queryActivityByUserId(String UserId, long lastId) throws Exception;

    byte[] getPictureBytesByFileName(String fileName) throws Exception;

    void saveActivityComment(Comment comment) throws Exception;

    void addJoinUser(long activityId, long userId) throws Exception;

    boolean hasJoin(long activityId, long userId) throws Exception;

    void exitActivity(long activityId, long userId) throws Exception;

    List<User> queryJoinList(long activityId) throws Exception;

    int queryJoinNum(long activityId) throws Exception;

    List<ActivityData> queryHotActivity() throws Exception;
}
